/*
* Copyright 2018 Shanxi Lu'an Taihang Laihui Net Tech co.,LTD.
*/
package com.laihuichuxing.factory.abstraction;

import com.laihuichuxing.factory.simple.Operation;

/**
 * Description:
 *
 * @author: Qinxuefeng
 * @since: 1.0
 * Create Date Time: 2018/12/13 9:56
 * Update Date Time:
 */

public class Main {
    public static void main(String[] args) {
        try {
            Operation operation = OperationFactory.createOperation("-");
            operation.numberA=244.13;
            operation.numberB=23.45;
            System.out.println(operation.result());
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        } catch (InstantiationException e) {
            e.printStackTrace();
        }
    }
}
